package com.zhss.springbootdemo01.config;

import org.springframework.lang.Nullable;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName UserLoginInterceptor
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2021/2/6 22:31
 * @Version 1.0
 */
public class UserLoginInterceptor implements HandlerInterceptor {

	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
		final String login = request.getParameter("_login");
		return Boolean.valueOf(login);
	}
}
